<template>
	<view>
		123
	</view>
	<text @click="triggerOne">点击传递数据</text>
</template>

<script setup lang="ts">
	import { ref } from 'vue';
	const text = ref('111')  
	const emit =defineEmits(["onTap"])
	const triggerOne = ()=>{
		emit('onTap','111')
	}
	
</script>

<style lang="scss">

</style>